package com.spzx.product.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "商品分类品牌")
public class CategoryBrand extends BaseEntity {
    @Schema(description = "商品分类id")
    @NotNull
    private Long categoryId;
    @Schema(description = "商品品牌id")
    @NotNull
    private Long brandId;
    @Schema(description = "分类名称")
    @TableField(exist = false)
    private String categoryName;

    @Schema(description = "品牌名称")
    @TableField(exist = false)
    private String brandName;

    @Schema(description = "品牌图标")
    @TableField(exist = false)
    private String logo;
    @Schema(description = "分类品牌的一二三级分类id")
    @TableField(exist = false)
    private List<Long> categoryIdList;
}
